//
//  UIView+HSAddition.h
//  customer
//
//  Created by Holothurian on 2018/10/20.
//  Copyright © 2018年 yinlong. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (HSAddition)

+ (id)newView:(CGRect)frame;

+ (id)newView:(CGRect)frame bgColor:(UIColor *)bgColor;

@property (nonatomic) CGFloat viewLeft;

@property (nonatomic) CGFloat viewRight;

@property (nonatomic) CGFloat viewTop;

@property (nonatomic) CGFloat viewBottom;

@property (nonatomic) CGFloat viewWidth;

@property (nonatomic) CGFloat viewHeight;

@property (nonatomic) CGFloat viewCenterX;

@property (nonatomic) CGFloat viewCenterY;

@property (nonatomic,readonly) NSArray * allSubviews;

@end

NS_ASSUME_NONNULL_END
